package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * CollectionRecordModel
 * 错题和收藏表
 *
 * @author 王雪芬
 * @version 2.0.0
 * @since 2.0.0 2019-01-26 18:24:57
 */
@ApiModel(value = "CollectionRecordModel:错题和收藏表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class CollectionRecordModel implements Serializable {

    //region 模板逆向生产来自CollectionRecordEntity的属性
    /**
     * id
     */
    @ApiModelProperty(value = "collectionRecord主键")
    @Column(name = "id")
    private String id;
    /**
     * 答题记录id
     */
    @ApiModelProperty(value = "答题记录id", required = true)
    private String paperRecordId;

    /**
     * 区分错台和收藏,0表示错题,1表示收藏
     */
    @ApiModelProperty(value = "区分错台和收藏,0表示错题,1表示收藏", example = "0")
    private Integer status;

    /**
     * 考生_id
     */
    @ApiModelProperty(value = "考生_id", required = true)
    private String examineeId;

    /**
     * 课程_id
     */
    @ApiModelProperty(value = "课程_id", required = true)
    private String courseId;

    /**
     * 考试_id
     */
    @ApiModelProperty(value = "考试_id", required = true)
    private String examinationId;

    /**
     * 题型_id
     */
    @ApiModelProperty(value = "题型_id", required = true)
    private String questionTypeId;

    /**
     * 题干_id
     */
    @ApiModelProperty(value = "题干_id", required = true)
    private String questionId;

    /**
     * 正确答案
     */
    @ApiModelProperty(value = "正确答案")
    private String correctAnswer;

    /**
     * 正确答案HTML格式
     */
    @ApiModelProperty(value = "正确答案HTML格式")
    private String correctAnswerHtml;

    /**
     * 学生答案
     */
    @ApiModelProperty(value = "学生答案")
    private String studentAnswer;

    /**
     * 学生答案HTML格式
     */
    @ApiModelProperty(value = "学生答案HTML格式")
    private String studentAnswerHtml;

    /**
     * 学生答案原格式
     */
    @ApiModelProperty(value = "学生答案原格式")
    private String studentAnswerArrayStr;

    /**
     * 学生得分
     */
    @ApiModelProperty(value = "学生得分")
    private Double score;

    /**
     * 版本（默认为1，以后是2，3，4....）
     */
    @ApiModelProperty(value = "版本（默认为1，以后是2，3，4....）", required = true, example = "0")
    private Integer version;

    //endregion

    /* *****************************以下是非模板生成的内容************************************ */
}
